<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/3
 * Time: 14:05
 */
namespace app\api\controller;
use think\Controller;
use think\Db;

class Index extends Controller
{
    public function index(){
        $data['item_cate'] = Db::name('item_caye')->field('id,name')->where(['status'=>1])->order('sort asc')->select();

    }
}